#include "sceneDivCube.h"

sceneDivCube::sceneDivCube()
{

}
sceneDivCube::~sceneDivCube()
{

}
std::vector<cccComboBreaker*> sceneDivCube::getPhoton(point colisionCoords, double r)
{
	std::vector<cccComboBreaker*> sample;

	double dist(0.0);
	for(unsigned int i(0); i< photons.size(); i++)
	{
		dist = photons.at(i)->distanceFrom(colisionCoords);
		if(dist <= r)
		{
			sample.push_back( new cccComboBreaker(photons.at(i),dist));
		}
	}
	return sample;
}